using System;


/// <summary>
/// Summary description for BenhNhan.
/// </summary>
public class BenhNhanInfo
{
	#region Thuoc tinh
	protected string _maSo="";//sohs
	protected string _ho="";
	protected string _ten="";	
	protected string _hoTen="";	
	protected string _gioi;
	protected int _tuoi;
	protected string _diaChi="";
	protected string _nghe="";
	protected string _ngay;
	protected int _tinhID;
	protected int _namSinh;
	protected string _phone;
    protected string _email;
	protected bool _bhytSet = false;
	protected string _maQuocTich;
    protected string _diaChi2 = "";
	protected int _sttPK;
    private string ngaynhapvien = "";
    private string sohs;
    private bool coratoa = false;
    private string _ngaybhyt;
    private string _madonvi;
    private string _tendonvi;
    public string Madonvi
    {
        get { return _madonvi; }
        set { _madonvi = value; }
    }
    

    public string Tendonvi
    {
        get { return _tendonvi; }
        set { _tendonvi = value; }
    }

    public string Ngaybhyt
    {
        get { return _ngaybhyt; }
        set { _ngaybhyt = value; }
    }

    public bool Coratoa
    {
        get { return coratoa; }
        set { coratoa = value; }
    }
    public string Sohs
    {
        get { return sohs; }
        set { sohs = value; }
    }
    #region "LeThanhDung"
    //LeThanhDung
    private string _SoNhapVien;

    public string SoNhapVien
    {
        get { return _SoNhapVien; }
        set { _SoNhapVien = value; }
    }

    private string _ChanDoanXV;

    public string ChanDoanXV
    {
        get { return _ChanDoanXV; }
        set { _ChanDoanXV = value; }
    }
    //tron goi------------------------
    private string _TenTronGoi;

    public string TenTronGoi
    {
        get { return _TenTronGoi; }
        set { _TenTronGoi = value; }
    }

    private int _TienTronGoi;

    public int TienTronGoi
    {
        get { return _TienTronGoi; }
        set { _TienTronGoi = value; }
    }

    private string _NgayBDTronGoi;

    public string NgayBDTronGoi
    {
        get { return _NgayBDTronGoi; }
        set { _NgayBDTronGoi = value; }
    }

    private string _NgayKTTronGoi;

    public string NgayKTTronGoi
    {
        get { return _NgayKTTronGoi; }
        set { _NgayKTTronGoi = value; }
    }
    private bool _bhytxv;

    public bool Bhytxv
    {
        get { return _bhytxv; }
        set { _bhytxv = value; }
    }

    #endregion
    public string Ngaynhapvien
    {
        get { return ngaynhapvien; }
        set { ngaynhapvien = value; }
    }
    private string traibenh = "";

    public string Traibenh
    {
        get { return traibenh; }
        set { traibenh = value; }
    }
    private string ngayxuatvien = "";

    public string Ngayxuatvien
    {
        get { return ngayxuatvien; }
        set { ngayxuatvien = value; }
    }
	#endregion

	#region Cac ham thao tac truy xuat thuoc tinh
	public string MaSo
	{
		get{return _maSo;}
		set
		{
			if (value == null)
				throw new Exception("Ma HS khong duoc rong");
			_maSo = value;
		}
	}
	public string Ho
	{
		get{return _ho;}
		set{_ho = value;}
	}
	public string Ten
	{
		get{return _ten;}
		set{_ten = value;}
	}
	public string HoTen
	{
		get{return _hoTen;}
		set{_hoTen = value;}
	}
	public string Gioi
	{
		get{return _gioi;}
		set{_gioi = value;}
	}

	public int Tuoi
	{
		get{return _tuoi;}
		set{_tuoi = value;}
	}


	public int NamSinh
	{
		get{return _namSinh;}
		set{_namSinh = value;}
	}
	public string DiaChi
	{
		get{return _diaChi;}
		set{_diaChi = value;}
	}
	public string Nghe
	{
		get{return _nghe;}
		set{_nghe = value;}
	}

	public string Phone
	{
		get{return _phone;}
		set{_phone = value;}
	}
    public string Email
    {
        get { return _email; }
        set { _email = value; }
    }
	public string Ngay
	{
		get{return _ngay;}
		set{_ngay = value;}
	}
	
	public int TinhID
	{
		get{return _tinhID;}
		set{_tinhID = value;}
	}
	public bool BHYTSet
	{
		get{return _bhytSet;}
		set{_bhytSet = value;}
	}

	public string MaQuocTich
	{
		get{return _maQuocTich;}
		set{_maQuocTich = value;}
	}

    public string DiaChi2
    {
        get { return _diaChi2; }
        set { _diaChi2 = value; }
    }
	#endregion

}

